home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 2.2 KB | 98 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: TextShp.h
- // Release Version: $ ODF 1 $
- //
- // Author: Henri Lamiraux
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef TEXTSHP_H
- #define TEXTSHP_H
-
- #ifndef CONSTANT_H
- #include "Constant.h"
- #endif
-
- #ifndef BASESHP_H
- #include "BaseShp.h"
- #endif
-
- #ifndef BOUNDSHP_H
- #include "BoundShp.h"
- #endif
-
- // ----- Framework Layer -----
-
- #ifndef FWSELECT_H
- #include "FWSelect.h"
- #endif
-
- // ----- OS Layer -----
-
- #ifndef FWINK_H
- #include "FWInk.h"
- #endif
-
- #ifndef FWSTYLE_H
- #include "FWStyle.h"
- #endif
-
- #ifndef FWPOINT_H
- #include "FWPoint.h"
- #endif
-
- #ifndef FWRECT_H
- #include "FWRect.h"
- #endif
-
- // ----- Foundation Layer -----
-
- #ifndef FWRUNTYP_H
- #include "FWRunTyp.h"
- #endif
-
- //========================================================================================
- // Forward Declarations
- //========================================================================================
-
- class CDrawFacetClipper;
-
- //========================================================================================
- // class CTextShape
- //========================================================================================
-
- class CTextShape : public CBoundedShape
- {
- public:
- FW_DECLARE_CLASS
- FW_DECLARE_AUTO(CTextShape)
-
- public:
- CTextShape();
- CTextShape(FW_CReadableStream& archive);
- virtual ~CTextShape();
-
- // ----- Archiving -----
- static void* Read(FW_CReadableStream& stream, FW_ClassTypeConstant type);
- virtual void Flatten(FW_CWritableStream& archive);
-
- // ----- Shape -----
- virtual void GetClipRegion(Environment* ev, ODShape* clipRegion);
- virtual ODShape* CreateShapeOutline(Environment *ev);
-
- virtual FW_Boolean HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
- virtual void RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
-
- protected:
- CTextShape(unsigned short shapeType, unsigned short renderVerb);
-
- private:
- virtual void OutlineShape(FW_CGraphicContext& gc, const FW_CInk& ink, const FW_CStyle& style, const FW_CRect& rect);
- FW_CString fText;
- };
-
- #endif
-